var baseUrl = getBaseUrl();
window.imgUrl = baseUrl + "/gtoa/";
window.serviceUrl = baseUrl + "/gtoa_service/";
//window.serviceUrl = "http://localhost:8090/gtoa_service/";

window.CHANNEL = {
    sylbt : "dc51cb5e3015458abbc89517806b676b",//首页轮播图
    xydtdt : "fc15a3984e6644ae8f3794cd5cad23eb",//学院动态带图
    xydtycbt : "134b6cbc2e564c2bb6406685b8228213",//学院动态右侧标题
  //  jxky : "90385ca876a44124bc21ed9455b62689",//教学科研
    ztwz : "02c1937a21cb4e679f171a48440ecb46",//专题网站
    xxgk : "13c46363788b49bc8a7a89e52c3ebab6",//信息公开
    jyzx : "1f68681cb1854f99b07c17ea3632b893",//教育资讯
    jjlbt : "e2b645c1be5b47b29fb33b7c00eea3bd",//简介轮播图
    jjzcsp : "a0df13566d774f79a2a140dc865af604",//简介左侧视频
    jjxydt : "115da2425bad420e92bc8060233094af",//简介校园动态
    jjxyfc: 'be824ec3bd08474ead4ee0d4c7b767ac',//简介学院风采
    xwgk : "7190eb3dd9d54a5f85d914611dd442d7",//校务公开
    zbcg :"5723695bcb59426da8411c99d1cfcbff",//招标采购
    xxzp : "05349a092ee44a7eb1b94e3e0147a30c",//学校招聘
    bwcx: "c39757c9f0dc4fdda369b6ee9d5bc9e1",//不忘初心
    lxyz: "2873e88c56354c719d3c9e01ec1b5f5b",//两学一做
    yqfk: "3d9ad4e1b5244cbd92e42b9e2fb04733",//疫情防控
    jxky: "e4fdabb046a6458c9447fc26c6c2e5a7",// 教学科研
    xxqg:"824beb9706c444c4a1cec73819438b23",//学习强国
    xlzx:"aec946cdeffa4ffaa76f409a83f2c9eb",//心理咨询

    sgjhjs:"053fb61e8a93472297a8706b900ce535",//"双高计划"政策文件
    sgjhjsgh:"cb3fce3ce10e4e7e9394ad98c12f5b1a",//"双高计划"交流学习
    sgjhtjjz:"f31af107c4aa4be6b7988b3c4f46f7c8",//"双高计划"建设动态



};
window.content = {
    jjnr : "f2bbb0ea867d4b8aa66014c7de15c338",//简介内容
    jjxxld : "966c220cbb3742149cebabcd20badee2",//学校领导
    jjxyfc : "a8ea04ba24ec45cd8cfb9767aefb1079",//校园风采
};

window.channelList = {
    xxgk:{
        name:'学校概况',
        id:'bd59366236b64c1580c6c4c3cada7550',
        lbt:'eaa77bdc1da940ecbb03b88b5f8d885b',
        sp:'6e267874d8c44cdb8a1cf13630010fe2',
        xxjj:'ba819ecd4fd44e6b83f27f2f2f13b4b5',
        xxld:'966c220cbb3742149cebabcd20badee2'
    },
    jggl:{
        name:'管理机构',
        lbt:'d38594c590054c379a462602970ceb2a',
        sp:'40e7b750ebd641c08ef06ae0ba62c4dc',
        zw:'48bdd16bd4ac4c878452f2fcd642bed6'
    },
    yxsz:{
        name:'院系设置',
        lbt:'4622326c50e5449295f6a1685cf81eb4',
        sp:'2af39116b8764ac0aff042e0f863b892',
        zw:'95f6310848d6454db16f59536252e134'
    },
    dzb:{
        name:'党政办',
        id:'75aef6ad7eee4204aa0c6c32dae55dfd',
        lbt:'ad86ca58082a464486f639a9a4b2d516',
        sp:'c3fccc9ece5d4e00a49359d151f302a0',
        zw:'ba819ecd4fd44e6b83f27f2f2f13b4b5',
        channel:'机构管理>党政办'
    },
    jyjxddypgzx:{
        name:'教育教学督导与评估中心',
        id:'d5e85e00b2b842cfabbb9005a45cd1a8',
        lbt:'d0b2a2e615224ae9aa5ea5fb1fc569ab',
        sp:'921165b5add749ed8c528f9cfe479f2d',
        zw:'fda9caec66c246bc804aece3b27c8bbe',
        channel:'机构管理>教育教学督导与评估中心'

    },
    jkc:{
        name:'教科处',
        id:'cfb60463c3de4dcbbf2ccb20a26e008a',
        lbt:'0131c1fa5cee464daf3b1128844836bf',
        sp:'09a1cf480f9e4872842de3bca3314ecc',
        zw:'d2f22f04bf214a7d9da09ce45fc0f6de',
        channel:'机构管理>教科处'
    },
    xsgzc:{
        name:'学生工作处',
        id:'678100dd98c241fab69df7a5f9b29584',
        lbt:'ef68faa987144b4db9769b1b67ea9b2a',
        sp:'6fbcaf5c786e477fb3a3794a5cdf24d7',
        zw:'12bf65ab94ce473ca0e747fac9aa798b',
        channel:'机构管理>学生工作处'
    },
    zsjyc:{
        name:'招生就业处',
        id:'59a01160f5824788a6f374eb7eb51720',
        lbt:'2876e01837604e83b7335f601c7cbb30',
        sp:'33af01511c534bb2b36da7c7a26669d5',
        zw:'9f668d5051ce49898cb370b46f748758',
        channel:'机构管理>招生就业处'
    },
    hqc:{
        name:'后勤处',
        id:'3df2e22175bc470d80bdf7d3a6768e2e',
        lbt:'87586d83fd8b4490bae310bd50073ba6',
        sp:'daebc59aea5c431c80b9be9dfdc1de29',
        zw:'6fc57b30fb3f4ca6a7819776fcfffcff',
        channel:'机构管理>后勤处'
    },
    pxc:{
        name:'培训处',
        id:'4de91e60fc514c018b01a5dfd2d3c006',
        lbt:'5565ae0a5be3458494fae8edf251d6b8',
        sp:'b5b77f82849a4d3697924003ee61951b',
        zw:'41b5c48ad1354e8fab70215f4ade5180',
        channel:'机构管理>培训处'
    },
    xmjsc:{
        name:'项目建设处',
        id:'ccbb1e8a5dd04e59b6acf123115ddee3',
        lbt:'acbcb6345c2f49409f13da17d6021202',
        sp:'6964c64bd62b4efc8dd215a7aab03f91',
        zw:'ae5b5aa8b31f447f85fb09e87fbbbeb2',
        channel:'机构管理>项目建设处'
    },
    gh:{
        name:'工会',
        id:'c304eb1076944c47af289992a760e17d',
        lbt:'00c28fb108864eb684cabccbf774cf3a',
        sp:'ede012c8c7a3482f8eb55a138a5d73fe',
        zw:'44afe56a32684554a7fa69d9feb2a217',
        channel:'机构管理>工会'
    },
    znzzx:{
        name:'智能制造系',
        id:'be37f7bd818d48ab8838801d97b16ff3',
        lbt:'321b2daf26ff47a292686ff2560ece97',
        sp:'d46dc2b151b04e8182b76d515e349228',
        zw:'b6e496a726e64b948ae2dcf392d701e0'
    },
    xdjtx:{
        name:'现代交通系',
        id:'6cff9842dea648c8852cbf91ac79dbe3',
        lbt:'415cb94632f84af5adc04b5c1548b649',
        sp:'53c5a4aab5e54f7f98f22994efaeba11',
        zw:'c4c04278270740729dc67d0be1647b12'
    },
    cjylyx:{
        name:'财经与旅游系',
        id:'91eb22b21e7a4c28a73acf457a30450a',
        lbt:'c825a7db85a34d4c84f3a2fdbf07b9de',
        sp:'d9192d7c2fcd4611adf2867c332ec5da',
        zw:'d465f51d5888463282b691d98e813312'
    },
    yssjyxxgcx:{
        name:'艺术设计与信息工程系',
        id:'ea9f2c02709b4fc89b9400bb454b3e71',
        lbt:'5f9e06979c2848dca778db9b02e208dd',
        sp:'96a4776fa641436290e8e085f1538eb0',
        zw:'1d9ca89ad62a4f918b97ad99cae6de3c'
    },
    xqjyx:{
        name:'学前教育系',
        id:'dc8dd5d0fd974e41b3ccf7721be21043',
        lbt:'b646f242e59c4834a1ac24dbed0ffaf2',
        sp:'ecc7d69e868b4255bed62c1b6336cde1',
        zw:'2c2d34ea72ac4355bb84358f9f27edd8'
    },
    fsyey:{
        name:'附属幼儿园',
        id:'6113f7ce83ff4113a03cccdc906efd48',
        lbt:'a1c32266b7ab4398afc865750f25db4e',
        sp:'6707f3df8fdc41a58a0c0dcc3cf487c0',
        zw:'88da0fcc4c33460d9f6ba1db06626700'
    },

    sgjsztw:{
        id:'3aef6d054e514e459e350ec3b49fd461',
        name:'双高建设专题网',
        lbt:'a2657a89ade04df88dc3b9a42ae648fb',
        sp:'d556cf5126a04b78923e70dc90932a54'
    },
    xxgk1:{
        id:'d01a4a8abd404031ae2e9a13cd649719',
        name:'信息公开',
        lbt:'842bbdfcc12042ffb3e104d1457a8bb0',
        sp:'8bf1900d73f44c8ea3a5282549aa65d8'
    },
    dzzt:{
        id:'070a639ae4c24b629ae966e4f7cd8e27',
        name:'专题专栏',
        lbt:'a979de01ada0479b8e07bcc3b4d3d63f',
        sp:'f96eaf4b29e84cc5933d65c0fb523e5b'
    },
    jxky:{
        id:'f9834f50a32f4724ac9e1221847f5cd9',
        name:'教学科研',
        lbt:'555358c52f1b4383ad76f7ac1eaac8d9',
        sp:'cc9aeaf98f87454e92f617eb0a43efad'
    },
    jyzx:{
        id:'c22151adb9e54453b916c8010427b440',
        name:'教育资讯',
        lbt:'0d509f7d722a41dc95d8cc8a06cf79da',
        sp:'46c7316c524d464cb03e577a715446c8'
    },
    xyfc:{
        id:'bb6b80a5bcab454d97d9f33209bdafdf',
        name:'校园风采',
        lbt:'c792c4e26c9647819461ecbac500796c',
        sp:'ec1b0611aabd460ca7b9ec5f90680a87'
    },
    xlzx:{
        id:'aec946cdeffa4ffaa76f409a83f2c9eb',
        name:'心理咨询',
        lbt:'d972115df31945b7b553e53a74cfbe43',
        sp:'e3228540e5d84e7880294cf28e73ba6a'
    }
};

function load(url, data){
    //alert($(url).attr("href"));
    $.ajaxSetup({cache: false });
    $("#header").load($(url).attr("href")+ " #header ", data, function(result){
        //alert(result);
        //将被加载页的JavaScript加载到本页执行
        $result = $(result);
        $result.find("script").appendTo('#content');
    });
}

function getBaseUrl(){

//protocol 属性是一个可读可写的字符串，可设置或返回当前 URL 的协议,所有主要浏览器都支持 protocol 属性
    var ishttps = 'https:' == document.location.protocol ? true: false;
    var url = "www.lyqzh.net";
    if(ishttps){
        url = 'https://' + url;
    }else{
        url = 'http://' + url;
    }
    return url;
}